package com.aistar.order.service.impl;

import com.aistar.order.entity.HotelOrder;
import com.aistar.order.mapper.HotelOrderMapper;
import com.aistar.order.service.IHotelOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by Administrator on 2019/6/25 0025.
 */
@Service
@Transactional
public class HotelOrderImpl implements IHotelOrderService{
    @Autowired
    private HotelOrderMapper hotelOrderMapper;


    @Override
    public HotelOrder findById(String id) {
        return hotelOrderMapper.findById(id);
    }

    @Override
    public List<HotelOrder> findMyOrder(String id) {
        return hotelOrderMapper.findMyOrder(id);
    }

    @Override
    public List<HotelOrder> findAll(String id) {
        return hotelOrderMapper.findAll(id);
    }

    @Override
    public void save(HotelOrder hotelOrder) {
        hotelOrderMapper.save(hotelOrder);
    }

    @Override
    public void delete(String id) {
        hotelOrderMapper.delete(id);
    }

    @Override
    public void update(HotelOrder hotelOrder) {
    hotelOrderMapper.update(hotelOrder);
    }
}
